package Test.proxy_cglib;

import Test.proxy_jdk.ExecuteClass;
import Test.proxy_jdk.SecurityHandler;

/**
 * @author ：朱博
 * @description：TODO
 * @date ：2021/3/2 23:03
 */
public class ProxyTest {

    public static void main(String[] args) {
        ExecuteClassImplements target = new ExecuteClassImplements();
        ExecuteClassImplements proxyInstance = (ExecuteClassImplements)new SecurityMethodInterceptor(target).getProxyInstance();
        System.out.println(proxyInstance.testProxy1());
        System.out.println("------------------------------------------------");
        System.out.println(proxyInstance.testProxy2());
        System.out.println("------------------------------------------------");
        System.out.println(proxyInstance.testProxy3());
    }
}
